/* jshint esversion: 6 */
import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
	routes: [
	    //阿宝首页
	    {
	    	path: '/homepage',
	    	name: 'homepage',
	    	component: function(resolve) {
	    		require(['@/page/abApplication/homepage'], resolve);
	    	}
	    },     
	    //注册
	    {
	    	path: '/register',
	    	name: 'register',
	    	component: function(resolve) {
	    		require(['@/page/abApplication/register'], resolve);
	    	}
	    },    
	    //我的
	    {
	    	path: '/mine',
	    	name: 'mine',
	    	component: function(resolve) {
	    		require(['@/page/abApplication/mine'], resolve);
	    	}
	    }, 
	    //管理平台
	    {
	    	path: '/managePlatform',
	    	name: 'managePlatform',
	    	component: function(resolve) {
	    		require(['@/page/abApplication/managePlatform'], resolve);
	    	}
	    },
		//自定义菜单
		{
			path: '/diyMenu',
			name: 'diyMenu',
			component: function(resolve) {
				require(['@/page/abApplication/diyMenu'], resolve);
			}
		},
		//首页管理
		{
			path: '/indexM',
			name: 'indexM',
			component: function(resolve) {
				require(['@/page/abApplication/indexM'], resolve);
			}
		},
		//二维码
		{
			path: '/codes',
			name: 'codes',
			component: function(resolve) {
				require(['@/page/abApplication/codes'], resolve);
			}
		},
	    //审核体统登录
	    {
	    	path: '/login',
	    	name: 'login',
	    	component: function(resolve) {
	    		require(['@/page/auditSystem/login'], resolve);
	    	}
	    },
	    //审核列表
	    {
	    	path: '/auditList',
	    	name: 'auditList',
	    	component: function(resolve) {
	    		require(['@/page/auditSystem/auditList'], resolve);
	    	}
	    },

        //默认主页
        { path: '*', redirect:'/login'}
        ]
    });
